﻿using UnityEngine;
using System.Collections;
using System;

// 角色外观
public class Role : Creature
{
    public new RoleTableData TableData
    {
        get
        {
            return base.TableData as RoleTableData;
        }
    }

    // 是否可被攻击
    public override bool CanBeAttack(Creature attacker)
    {
        if (!base.CanBeAttack(attacker))
        {
            return false;
        }

        // 能被npc攻击
        if (attacker as Npc != null)
        {
            return true;
        }

        // 阵营关系
        // 组队关系

        return true;
    }
}
